﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Poisk.aspx.cs" Inherits="WebApplication1.Poisk" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Главная</title>
    <style type="text/css">
        #form1
        {
            height: 499px;
            width: 1366px;
        }
    </style>
</head>
<body bgcolor="white">
    <form id="form1" runat="server" >
    <img src="2.jpg" style="height: 197px; width: 1394px" align="top"/>        
           
        
        <p style="width: 274px; height: 25px">
            <asp:HyperLink ID="HyperLinkOut" runat="server" NavigateUrl="~/Default.aspx">Выйти</asp:HyperLink>
             </p>
        <p>
            <asp:TextBox ID="TextBoxSearch" runat="server"  Width ="196px" 
                MaxLength="15" ></asp:TextBox>
            
            </p>
    <p>
            <asp:Button ID="ButtonSearch" runat="server" onclick="ButtonSearchClick" 
                Text="Найти" Width="220px" />
            </p>
    <p>
            <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Large" 
                ForeColor="Blue" Text="Договора нашей компании:"></asp:Label>
            </p>
                <asp:GridView ID="GridViewSearch" runat="server"  AllowSorting="True" 
                AutoGenerateColumns="False" DataKeyNames="Id"
                Font-Size="Large" ForeColor="#000099" BackColor="Yellow">
       <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" 
                        ReadOnly="True" SortExpression="Id" Visible="false"/>
                    <asp:BoundField DataField="IdFlat" HeaderText="Номер сертификата собственности" 
                        SortExpression="IdFlat" />
                    <asp:BoundField DataField="IdAgent" HeaderText="Агент №" 
                        SortExpression="IdAgent" />
                    <asp:CheckBoxField DataField="Fire" HeaderText="Страхование от пожара" SortExpression="Fire" />
                    <asp:CheckBoxField DataField="Water" HeaderText="Страхование от затопления" 
                        SortExpression="Water" />
                    <asp:CheckBoxField DataField="Wear" HeaderText="Включён износ" SortExpression="Wear" />
                    <asp:CheckBoxField DataField="Problem" HeaderText="Проблемный СП" 
                        SortExpression="Problem" />
                    <asp:CheckBoxField DataField="Loot" HeaderText="Страхование от ограбления" SortExpression="Loot" />
                    <asp:BoundField DataField="Date" HeaderText="Дата" SortExpression="Date" />
                    <asp:BoundField DataField="Sum" HeaderText="Стоимость" SortExpression="Sum" />
                </Columns>
        </asp:GridView>
<asp:HyperLink ID="HyperLinkBack" runat="server" NavigateUrl="~/Main.aspx">Назад</asp:HyperLink>
        
&nbsp;</form>
</body>
</html>

